<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</h:head>

	<h:body>
		<ui:composition template="/XHTML/CommonColumnsContent.xhtml">
			<ui:define name="header">
				<ui:include src="/WEB-INF/facelets/header.jspx" />
			</ui:define>
			<br />
			<br />

			<ui:define name="body">
				<f:view>
					<p:ajaxStatus onstart="statusDialog.show();"
						onsuccess="statusDialog.hide();" />
					<p:dialog modal="true" widgetVar="statusDialog" header="Loading"
						draggable="false" closable="false">
						<p:graphicImage
							value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/images/ajaxloadingbar.gif" />
					</p:dialog>

					<h:form>

						<br />
						<div align="center">
							<p:panel id="msgProjectLoginTitle" header=" BIENVENIDOS">
								<p:messages id="msg" showDetail="true" />
								<p:growl id="men" />
								<div align="center">

									<h:panelGrid columns="2" id="panel">

										<h:outputText id="msgNit" value="NIT: " />
										<p:inputText id="txtNit" binding="#{loginView.txtNit}" />
										<h:outputText id="msgLogin" value="LOGIN:  " />
										<p:inputText id="txtLogin" binding="#{loginView.txtLogin}" />
										<h:outputText id="msgContraseña" value="CONTRASEÑA:  " />
										<p:password id="nonFeedback" value="#{loginView.txtPassword}" />
									</h:panelGrid>
								</div>

								<div align="center">


									<h:panelGrid id="panelBotones" columns="2">

										<p:commandButton id="btnIngresar" disabled="false"
											value="Ingresar" action="#{loginView.action_ingresar}" />


										<p:commandButton id="btnClear" disabled="true" value="Limpiar"
											action="#{loginView.action_salir}" />


									</h:panelGrid>
								</div>
							</p:panel>
						</div>
					</h:form>
				</f:view>
			</ui:define>

			<ui:define name="footer">
				<ui:include src="/WEB-INF/facelets/footer.jspx" />
			</ui:define>
		</ui:composition>
	</h:body>

</html>
